﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Oracle.DataAccess.Client;
using System.Configuration;

namespace JobUtil.DalLib
{
    public class CheckDbClass : DbConnectorClass
    {
        public CheckDbClass(string connectionName){
            ConnectionName=connectionName;
        }

        public bool TestQuery()
        {
            string sQuery = "select sysdate from dual";
            
            var orCommand = new OracleCommand() { Connection = OConnection, CommandText = sQuery };

            OracleDataReader reader = orCommand.ExecuteReader();

            return reader.Read();
        }

    }
}
